package net.huashitong.interview.service;

import com.sirdc.modules.core.dao.BaseDao;
import com.sirdc.modules.sys.base.StringPKService;
import com.sirdc.modules.sys.service.SysTableService;
import net.huashitong.interview.dao.FillUnitDao;
import net.huashitong.interview.entity.EnterpriseRegister;
import net.huashitong.interview.entity.InterviewFillUnit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FillUnitService extends StringPKService<InterviewFillUnit> {
    @Autowired
    private FillUnitDao dao;
    @Autowired
    private SysTableService tableService;

    @Override
    protected BaseDao<InterviewFillUnit, String> getDao() {
        return dao;
    }
    @Override
    protected void beforeSave(InterviewFillUnit obj) {
        obj.setSysId(tableService.updateMaxSysId("t_gis_interviewFillUnit", null));
    }


}
